
package ss
import (
	"sanguo/codec/pb"
	"sanguo/protocol/ss/message"
	"sanguo/protocol/ss/rpc"
)

func init() {
	//普通消息
	pb.Register("ss",&message.Echo{},1001)
	pb.Register("ss",&message.ReportGame{},1002)
	pb.Register("ss",&message.Kick{},1003)
	pb.Register("ss",&message.Relay{},1004)
	pb.Register("ss",&message.Heartbeat{},1005)
	pb.Register("ss",&message.UserLog{},1006)
	pb.Register("ss",&message.ReportStatus{},1007)
	pb.Register("ss",&message.StartAoi{},1008)
	pb.Register("ss",&message.Refresh{},1009)
	pb.Register("ss",&message.OnStoryStageChange{},1010)
	pb.Register("ss",&message.Chat{},1011)
	pb.Register("ss",&message.SystemMsg{},1012)
	pb.Register("ss",&message.HeartbeatTeam{},1013)
	pb.Register("ss",&message.GameToTeam{},1014)
	pb.Register("ss",&message.JoinTeamMsg{},1015)
	pb.Register("ss",&message.TeamList{},1016)
	pb.Register("ss",&message.Match{},1017)
	pb.Register("ss",&message.FightInvite{},1018)
	pb.Register("ss",&message.OnOroffLine{},1019)

	//rpc请求
	pb.Register("rpc_req",&rpc.EchoReq{},1001)
	pb.Register("rpc_req",&rpc.SynctokenReq{},1002)
	pb.Register("rpc_req",&rpc.EnterMapReq{},1003)
	pb.Register("rpc_req",&rpc.LeaveMapReq{},1004)
	pb.Register("rpc_req",&rpc.MoveReq{},1005)
	pb.Register("rpc_req",&rpc.ChangeOutlineReq{},1006)
	pb.Register("rpc_req",&rpc.EnterChatReq{},1007)
	pb.Register("rpc_req",&rpc.LeaveChatReq{},1008)
	pb.Register("rpc_req",&rpc.ChangeMapChatReq{},1009)
	pb.Register("rpc_req",&rpc.BattleToGameReq{},1010)
	pb.Register("rpc_req",&rpc.CreateTeamReq{},1011)
	pb.Register("rpc_req",&rpc.TeamToGameMsgReq{},1012)
	pb.Register("rpc_req",&rpc.LeaveTeamReq{},1013)
	pb.Register("rpc_req",&rpc.TeamInfoReq{},1014)
	pb.Register("rpc_req",&rpc.CreateRoomReq{},1015)
	pb.Register("rpc_req",&rpc.GetRoleInfoReq{},1016)

	//rpc响应
	pb.Register("rpc_resp",&rpc.EchoResp{},1001)
	pb.Register("rpc_resp",&rpc.SynctokenResp{},1002)
	pb.Register("rpc_resp",&rpc.EnterMapResp{},1003)
	pb.Register("rpc_resp",&rpc.LeaveMapResp{},1004)
	pb.Register("rpc_resp",&rpc.MoveResp{},1005)
	pb.Register("rpc_resp",&rpc.ChangeOutlineResp{},1006)
	pb.Register("rpc_resp",&rpc.EnterChatResp{},1007)
	pb.Register("rpc_resp",&rpc.LeaveChatResp{},1008)
	pb.Register("rpc_resp",&rpc.ChangeMapChatResp{},1009)
	pb.Register("rpc_resp",&rpc.BattleToGameResp{},1010)
	pb.Register("rpc_resp",&rpc.CreateTeamResp{},1011)
	pb.Register("rpc_resp",&rpc.TeamToGameMsgResp{},1012)
	pb.Register("rpc_resp",&rpc.LeaveTeamResp{},1013)
	pb.Register("rpc_resp",&rpc.TeamInfoResp{},1014)
	pb.Register("rpc_resp",&rpc.CreateRoomResp{},1015)
	pb.Register("rpc_resp",&rpc.GetRoleInfoResp{},1016)

}
